@import '~antd/es/style/variable.less';
@themesColor: #fff;

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 1em;
  background-color: rgba(50, 50, 50, 0.3);
}

::-webkit-scrollbar-track {
  border-radius: 1em;
  background-color: rgba(50, 50, 50, 0.1);
}

// 全局公共悬浮阴影
.commonShadow {
  box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.6);
}


@font-face {
  // 三极花朝体 粗
  font-family: "sjhct-cu";
  /* Project id 3237209 */
  src: url('./static/font/sjhct-cu.ttf') format('truetype'),
}

@font-face {
  // 三极花朝体 细-SJhuazhaozhong
  font-family: "sjhct-xi";
  /* Project id 3237209 */
  src: url('./static/font/sjhct-xi.ttf') format('truetype'),
}

@font-face {
  // 三极花朝体 中-SJhuazhaozhong
  font-family: "sjhct-zhong";
  /* Project id 3237209 */
  src: url('./static/font/sjhct-zhong.ttf') format('truetype'),
}

@font-face {
  // 三极花朝体 中粗-SJhuazhaozhong
  font-family: "sjhct-zhongcu";
  /* Project id 3237209 */
  src: url('./static/font/sjhct-zhongcu.ttf') format('truetype'),
}

@font-face {
  // 三极花朝体-SJhuazhaozhong 默认
  font-family: "sjhct";
  /* Project id 3237209 */
  src: url('./static/font/sjhct.ttf') format('truetype'),
}

html,
body,
#root {
  height: 100vh;
  // font-family: sjhct;
  font-size: 14px;
  // width: 1280px;
  // font-weight: bold;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

// .ant-pro-card-body{
//   padding: 0!important;
// }

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ant-btn-sm {
  border-radius: 20px;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}

/* CDN 服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: Regular;
  font-weight: 400;
  src: url("//at.alicdn.com/wf/webfont/H17VUGitw9NF/LZACzcbu28_JUpfPOLEMa.woff2") format("woff2"),
    url("//at.alicdn.com/wf/webfont/H17VUGitw9NF/V1NJ1aStIL0iodzTi2YYC.woff") format("woff");
  font-display: swap;
}

/* CDN 服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: ALBold;
  font-weight: 700;
  src: url("//at.alicdn.com/wf/webfont/H17VUGitw9NF/5aLhUvmZUts8zLk_qV5H8.woff2") format("woff2"),
    url("//at.alicdn.com/wf/webfont/H17VUGitw9NF/Idq1YQzlNXLDJwypvnZtv.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: Times;
  font-weight: 700;
  src: url('./common/font/Scratch\ Times.ttf');
  font-display: swap;
}


//antd h1 title
.ant-pro-global-header-logo {}

.ant-checkbox-group-item {
  padding: 12px 0;
}

.ant-btn {
  border-radius: 6px !important;
}

.ant-btn-primary {
  background-color: #1677FF;
  // border: none;
  border-radius: 6px
}

.ant-menu-title-content {
  // background-color: @themesColor;
}

.ant-menu {}

.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected::after {
  border-bottom: none !important;
}

.ant-pro-top-nav-header-main {
  background-color: @themesColor;
}

.ant-pro-menu-item-title {
  color: #333;
}

.ant-menu-item-selected .ant-pro-menu-item-title {
  border: 1px solid white;
  padding: 8px 10px;
  border-radius: 30px;
  background-color: white;
  // color: @themesColor;
}

.ant-input-group input {
  border: none;
}

.ant-pro-card-body {
  padding: 10px;
}

.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,
.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu {
  color: red;
}

.ant-pro-basicLayout-content {
  margin: 0 !important;
}

// 备注***
.ant-pro-checkcard-detail {
  margin: 0 auto !important;
}

.ant-layout {
  //background-color: #eefafa !important;

  .ant-layout-header {
    box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.2);
    // background-color: @themesColor;
  }


  // .ant-input-group {
  //   border-radius: 40px;
  //   background: #ffff;
  //   box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.6);
  //   overflow: hidden;
  // }

  // .ant-input-search-button {
  //   border-radius: 16px !important;
  // }

  .ant-input-group-addon {
    left: 0 !important;
  }

  .ant-select {
    // border-radius: 40px;
    //overflow: hidden;
    //border: none;

    .ant-select-selector {
      //border: none;
    }
  }

  .ant-input-affix-wrapper {
    border-radius: 40px;
    overflow: hidden;
    // border: none;
    // border-color: @themesColor;
  }

  .ant-input {
    // border: none;
    // border-color: @themesColor;
  }

  // .ant-tabs-tab {
  //   color: #fff;
  // }


  .ant-tabs-tab.ant-tabs-tab-active {
    // color: @themesColor;

    .ant-tabs-tab-btn {
      // color: #fff;
      font-weight: bold;
    }
  }

  .commonOk {
    min-width: 120px;
    text-align: center;
    // background: @themesColor !important;
    color: #fff !important;
    border-radius: 40px !important;
    line-height: 1;
    height: 36px;
    box-shadow: none !important;

    &.commonOkDef {
      background: #fff !important;
      // color: @themesColor !important;
      margin-bottom: 20px;
    }
  }
}

.ant-pro-checkcard-content {
  // padding: 2px 14px;
  padding: 0 !important;
}

.ant-pro-card-header {
  padding: 0;
}

.lightBg {
  .ant-tabs-tab {
    color: #000;
  }

  .ant-tabs-tab-disabled {
    color: #000;
    font-weight: bold;
    font-size: 20px;
  }

  .ant-tabs-tab.ant-tabs-tab-active {
    background-color: #fff;
    // color: @themesColor !important;
    border-radius: 30px;

    .ant-tabs-tab-btn {
      // color: @themesColor !important;
    }
  }
}

html {
  // --ant-primary-color: @themesColor !important;
  // --ant-primary-6: @themesColor !important;
  // --ant-info-color: @themesColor !important;
}